<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>登录页面</h1>
<h2 th:text="${name}"></h2>
<a th:href="@{/test}">测试页面</a>

<form th:action="@{/commit}" method="post">
    <span>用户名:</span><input name="username" type="text"><br>
    <span>密码:</span><input name="password" type="text"><br>
    <input type="submit"><br>
</form>

<table>
    <tr>
        <td>新闻id</td>
        <td>新闻标题</td>
        <td>新闻内容</td>
    </tr>
    <tr th:each="news:${list}">
        <td th:text="${news.id}"></td>
        <td th:text="${news.title}"></td>
        <td th:text="${news.content}"></td>
    </tr>
</table>
</body>
</html>